//
//  WLSocketPacketParser.h
//  WanLian
//
//  Created by 123456 on 2019/1/8.
//  Copyright © 2019 wanlian. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GCDAsyncSocket.h"
typedef NS_ENUM(NSUInteger, WLParserStatus) {
    WLParserStatusSucess = 0,
    WLParserStatusFail//断点，从内存读出来
};
typedef void(^ParserReultBlock) (NSDictionary *msgDict, NSData *fileData, WLParserStatus status);
NS_ASSUME_NONNULL_BEGIN

@interface WLSocketPacketParser : NSObject
- (void)readData:(NSData *)data withSocket:(GCDAsyncSocket *)scoket_t tag:(long)tag;
- (instancetype)initWithParserResultBlock:(ParserReultBlock)parserResBlock;

- (void)stop;

- (void)resume;
@end

NS_ASSUME_NONNULL_END
